
from selenium.webdriver.common.by import By


# 用户名/手机/邮箱
axa_memberName = By.CSS_SELECTOR, '[login="true"]'
# 密码
axa_password = By.CSS_SELECTOR,  '#password'
# 验证码
axa_code = By.CSS_SELECTOR, '#randomCode'
# 登陆
axa_login_btn = By.CSS_SELECTOR, '#loginButton'
# 用户返回值
axa_username = By.CSS_SELECTOR, '#username'


# 登陆uat_url
axa_uat_login_url = 'https://uat-ecsalefront.axa.cn/template/client/customerLogin.html'
# 登陆sit_url
axa_sit_login_url = 'https://sit-ecsalefront.axa.cn/template/client/customerLogin.html'
# sit首页
axa_sit_homepage_url = "https://sit-net.axa.cn/"
# uat首页
axa_uat_homepage_url = "https://uat-net.axa.cn/"
# 关闭按钮
axa_close_btn = By.CSS_SELECTOR, '[src="images/landingPage/close.png"]'
# 车主姓名
axa_personnelName = By.CSS_SELECTOR, '[name="personnelName"]'
# 车牌
axa_licenceNo = By.CSS_SELECTOR, '[name="licenceNo"]'
# 立即报价
axa_q_submit = By.CSS_SELECTOR,  '[title="立即报价"]'
# 获取文本
axa_insuredCityName = By.CSS_SELECTOR, '#insuredCityName'


# iframe
axa_iframe = By.CSS_SELECTOR,  '#childframe'
# 行驶证发证日期
axa_runCardCertificateDate = By.CSS_SELECTOR, '#runCardCertificateDate'
# 车架号
axa_vehicleFrameNo = By.CSS_SELECTOR, '#vehicleFrameNo'
# 发动机号
axa_engineNo = By.CSS_SELECTOR, '[placeholders="请填写车辆行驶证中的发动机号码"]'
# 品牌型号
axa_familyName = By.CSS_SELECTOR, '#familyName'
# 时间
axa_firstRegisterDate = By.CSS_SELECTOR, '#firstRegisterDate'
# 进入iframe
axa_iframe2 = By.XPATH, '//iframe[@hidefocus="true"]'
# 左键
axa_NavImgll = By.CSS_SELECTOR, '.NavImgll a'
# 日期
axa_Wselday = By.CSS_SELECTOR, '.Wselday'
# 车主证件号
axa_showFormatCertificateNo = By.CSS_SELECTOR, '#showFormatCertificateNo'
# 车主手机号
axa_showFormatTelephone = By.CSS_SELECTOR, '#showFormatTelephone'
# 立即报价
axa_validateFormLink = By.XPATH, '//button[@id="validateFormLink"]'
# 获取文本
axa_baofeiTable = By.XPATH, '//*[text()="保费合计"]'

# 105按钮
axa_105_btn = By.CSS_SELECTOR, '#radioTPF_N_img'
# 109按钮
axa_109_btn = By.CSS_SELECTOR, '#radioBiz_N_img'
# 不购买105按钮
axa_cancelPurchase = By.CSS_SELECTOR, '#cancelPurchase'
# 确认报价
axa_next_setp = By.CSS_SELECTOR, '#next_setp'
#  获取文本信息
axa_agree = By.CSS_SELECTOR, '#agree-con-span'


# 邮箱
axa_email = By.CSS_SELECTOR, '#email_'
# 门牌号
axa_address = By.CSS_SELECTOR, '#receiveAddress'
# 已阅读 按钮
axa_info_btn = By.CSS_SELECTOR, '#infoCheckBox'
# 客户授权书
axa_flag = By.CSS_SELECTOR, '[flag="khsqs"]'
# 验证码
axa_validCode = By.CSS_SELECTOR, '#validCode'
# 确定
axa_confirm = By.CSS_SELECTOR, '#confirm'
# 获取 应付金额
axa_pay = By.CSS_SELECTOR, '//*[text()="应付金额："]'


# 微信支付
axa_wechat = By.CSS_SELECTOR, '#otherPlatform37'
# 支付宝
axa_alipay = By.CSS_SELECTOR, '#otherPlatform19'

